<template>
  <div class="main-container">
    <div class="flex-box login-box">
      <div v-if="$store.state.isLogin===0">
        <img src="@/assets/img/log-img-a01.png" alt="">
        <p>你还没有登录</p>
        <router-link :to="{ name: 'logPage', query: {redirect:'GuanZhu'}}">前往登录</router-link>
      </div>
      <div v-else>
        这里是测试
      </div>
    </div>
  </div>
</template>

<script>
// @ is an alias to /src
export default {
  name: 'ArticleGuanZhu',
  data() {
    return {
      lists: ''
    }
  },
  components: {},
  methods: {},
  mounted() {
    // console.log(this.$route)
    // console.log(this.$store.state.isLogin)
  }
}
</script>
<style scoped lang="scss">
.main-container {
  width: 100%;
  height: 60vh;
  .login-box {
    padding-top: 30px;
    height: 100%;
    flex-wrap: wrap;
    -webkit-flex-wrap: wrap;
    box-sizing: border-box;
    img {
      width: 150px;
      height: 193px;
    }
    p {
      width: 100%;
      font-size: 13px;
      line-height: 24px;
      margin-top: 12px;
      color: #666;
    }
    a {
      display: block;
      font-size: 15px;
      margin-top: 12px;
      padding: 6px 16px 6px 16px;
      background: #02a4e8;
      border-radius: 3px;
      color: #fff;
    }
  }
}
</style>
